****Generate figures
**BASELINE
global dataset = "bs_decomposition_SS_ProdR_new_kl"
global samplenametext = "Structural Value Added"
global samplenamefile = "SVA_decomp"

do "$code/estimation/postest/subfiles/decomposition_figures_base.do"

***GO
global dataset = "bs_decomposition_SS_ProdQ_new_klme_TFPQIV"
global samplenametext = "Gross Output"
global samplenamefile = "GO_decomp"

do "$code/estimation/postest/subfiles/decomposition_figures_base.do"

***GO RS
global dataset = "bs_decomposition_SS_ProdQ_new_klme_TFPQIV_rshare"
global samplenametext = "Gross Output - Revenue Shares"
global samplenamefile = "GO_decomp_rshare"

do "$code/estimation/postest/subfiles/decomposition_figures_base.do"

*****Magnitudes
global dataset = "bs_decomposition_SS_ProdR_new_kl"
global samplenametext = "Structural Value Added"
global samplenamefile = "SVA_percent"

do "$code/estimation/postest/subfiles/outputcompMagnitudes_combined.do"

global dataset = "bs_decomposition_SS_ProdQ_new_klme_TFPQIV"
global samplenametext = "Gross Output (Energy Share)"
global samplenamefile = "GO_percent"

do "$code/estimation/postest/subfiles/outputcompMagnitudes_combined.do"

global dataset = "bs_decomposition_SS_ProdQ_new_klme_TFPQIV_rshare"
global samplenametext = "Gross Output (Revenue Share)"
global samplenamefile = "GO_rshare_percent"

do "$code/estimation/postest/subfiles/outputcompMagnitudes_combined.do"

***Input Access Focus:

do "$code/estimation/postest/subfiles/InputAccess_Focus.do"
do "$code/estimation/postest/subfiles/InputAccess_Comparison.do"

***Interactions by Size (Revenue)
global dataset = "bsi_decomposition_SS_ProdR_new_kl"
global samplenametext = "Structural Value Added"
global samplenamefile = "SVA_decomp_interactions"
do "$code/estimation/postest/subfiles/decomposition_figures_base_interactions.do"

global dataset = "bsiwage_decomposition_SS_ProdR_new_kl"
global samplenametext = "Structural Value Added"
global samplenamefile = "SVA_decomp_l_interactions"
do "$code/estimation/postest/subfiles/decomposition_figures_base_interactions.do"
